// 时间格式必须为 YYYY-MM-DD
// 如果你使用 el-date-picker ，请设置属性 value-format="YYYY-MM-DD"
export type Personnel = {
    id: string,
    is_employed: boolean,
    is_talent: boolean,
    department_id: number,
    position_id: number,
    name: string,
    sex: string,
    birthday: Date,
    identity_number: string,
    entry_date: Date,
    work_date: Date,
    kind: string,
    source: string,
    political_affiliation: string | null,
    ethnicity: string | null,
    native_place: string | null,
    phone_number: string | null,
    email: string | null,
    stature: number | null,
    blood_group: string | null,
    marital_status: string | null,
    birthplace: string | null,
    domicile: string | null,
    education: string | null,
    degree: string | null,
    school: string | null,
    major: string | null,
    graduation_date: Date | null,
    resignation_id: number | null,
}

export type InsertPersonnel =  {
    department_id: number,
    position_id: number,
    name: string,
    sex: string,
    birthday: Date,
    identity_number: string,
    entry_date: Date,
    work_date: Date,
    kind: string,
    source: string,
    is_talent?: boolean,
    political_affiliation?: string,
    ethnicity?: string,
    native_place?: string,
    phone_number?: string,
    email?: string,
    stature?: number,
    blood_group?: string,
    marital_status?: string,
    birthplace?: string,
    domicile?: string,
    education?: string,
    degree?: string,
    school?: string,
    major?: string,
    graduation_date?: Date,
    resignation_id?: number,
}

 export type UpdatePersonnel= {
    id: string,
    name: string,
    sex: string,
    birthday: Date,
    identity_number: string,
    kind: string,
    political_affiliation?: string,
    ethnicity?: string,
    native_place?: string,
    phone_number?: string,
    email?: string,
    stature?: number,
    blood_group?: string,
    marital_status?: string,
    birthplace?: string,
    domicile?: string,
    education?: string,
    degree?: string,
    school?: string,
    major?: string,
    graduation_date?: Date,
}
